<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 子元素有点乱的时候，nth-child 就有问题 */
    div.container p:nth-child(3){
        background-color: yellow;
        color: black;
    }
    </style>
</head>
<body>
    <div class="container">
        <h1>nth-child vs nth-of-type 示例</h1>
    </div>
</body>
</html>